/***********************************************************************
 * Module:  Livreur.java
 * Author:  Chris
 * Purpose: Defines the Class Livreur
 ***********************************************************************/

package modele;

import java.util.*;

/** @pdOid 7a0ac477-74bb-4955-ac0c-4a2049de2e90 */
public class Livreur extends Employe {
	private Mission mission;
	
	public void livrer (Expedition e){
	
		for(int i = 0; i<mission.expedAffecter.size();i++){
			if(mission.expedAffecter.get(i).equals(e)){
						mission.expedAffecter.get(i).setStatutLivrer();
						mission.expedAffecter.remove(i);
					}
		}
	}
	public Boolean missionFini(){
		return this.mission.missionTerminer();
	}
	
}